package com.boarsoft.boar.batch.entity;

import com.boarsoft.common.Util;

import java.io.Serializable;

/**
 * @author tao.wang57
 * @Description: 批量执行任务进度上报表 (batch_report)
 * @date 2023-12-26
 */
public class BatchReport implements Serializable {

	private static final long serialVersionUID = -2788002976316326337L;

	/**
	 * 技术字段，表主键id
	 */
	private String id;

	/**
	 * 任务id
	 */
	private String batchId;

	/**
	 * 进度： 增量上报，如 5 ；+5形式 绝对上报：|40| 表示当前整体执行进度为40%（注：会覆盖掉之前上报的状态）
	 */
	private String progress;

	/**
	 * 阶段，如 fork阶段，jion阶段等
	 */
	private String phrase;

	/**
	 * 上报方ip地址
	 */
	private String addr;

	/**
	 * 子任务执行序号
	 */
	private String index;

	/**
	 * 错误监息
	 */
	private String error;

	/**
	 * 上报/登记时间
	 */
	private String lastTime;

	/**
	 * 第几次执行，默认第一次
	 */
	private short no = 1;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBatchId() {
		return batchId;
	}

	public short getNo() {
		return no;
	}

	public void setNo(short no) {
		this.no = no;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public String getPhrase() {
		return phrase;
	}

	public void setPhrase(String phrase) {
		this.phrase = phrase;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public String getProgress() {
		return progress;
	}

	public void setProgress(String progress) {
		this.progress = progress;
	}


	/** 执行任务ID */
	@Deprecated
	private String exeId;

	/** 进度 */
	@Deprecated
	private String rate;

	/** 批量执行状态 */
	@Deprecated
	private short status;

	/** 上报时间，默认为当前时间  */
	@Deprecated
	private String crtTm = Util.getStdmfDateTime();

	/** 更新时间 */
	@Deprecated
	private String updTm;

	public String getExeId() {
		return exeId;
	}

	public void setExeId(String exeId) {
		this.exeId = exeId;
	}

	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public String getCrtTm() {
		return crtTm;
	}

	public void setCrtTm(String crtTm) {
		this.crtTm = crtTm;
	}

	public String getUpdTm() {
		return updTm;
	}

	public void setUpdTm(String updTm) {
		this.updTm = updTm;
	}
}
